-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provider/aws: allow local kinesis #3255
Conversation
@@ -121,8 +118,11 @@ func (c *Config) Client() (interface{}, error) { | |||
log.Println("[INFO] Initializing RDS Connection") | |||
client.rdsconn = rds.New(awsConfig) | |||
|
|||
awsKinesisConfig := awsConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since awsConfig
is a pointer I think you're just making a new reference to the same struct here and then mutating it, rather than copying it as I think you intended.
@apparentlymart Thanks for the note on copying the pointer, I've since updated this |
Bump - anything you need from me to get this merged? |
Can you help me understand the change to the DynamoDB connection? Same for this Kinesis connection; if it's omitted, |
@catsby the change to the DynamoDB connection is just to remove some of the boilerplate of redefining the entire config object. It takes a copy of I've tested this by overriding |
OK, thanks for the explanation |
provider/aws: allow local kinesis
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Allow providing a custom endpoint for kinesis so that Terraform can provision locally (via tools like kinesalite).
The one thing I'm still not happy with is that valid IAM credentials are required even when only provisioning locally due to the early
ValidateCredentials
call. This also affectsdynamodb_endpoint
. Suggestions on how to fix this are welcome.Thanks!